package com.rs.dao;

import com.github.pagehelper.Page;
import com.rs.model.ZhLeanprogress;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZhLeanprogressMapper {



    ZhLeanprogress selectByPrimaryKey(Integer lpgId);

    /**
	  * 修改教学大纲
	  */
    int updateByPrimaryKeySelective(ZhLeanprogress record);

    int updateByPrimaryKeyWithBLOBs(ZhLeanprogress record);

    
    /**
	  * 条件分页查询
	  * @param Pagernunm
	  * @param zhLeanprogressService
	  * @return
	  */
	 Page<ZhLeanprogress> slecteLeanprogressesAllLeanprogresses (ZhLeanprogress zhLeanprogressService);
	 

	   	//删除某条进度
	    int deleteByPrimaryKey(Integer lpgId);
	    
	    //添加一条学习进度
	    int insertSelective(ZhLeanprogress record);
	    
	    
	    //查看所有进度信息(可传条件  类型/等级）
	    Page<ZhLeanprogress> selectZhLeanprogress(ZhLeanprogress record);
	    
	    //查看学习进度
	    ZhLeanprogress selectTeachingProgress(@Param("clId")Integer clId);
	    
	    //查看一个进度的详情
	    ZhLeanprogress selectZhLean(@Param("lpgId")Integer lpgId);
    
}